package day5.chongwu;

import day5.chongwu.bird.Parrot;

/**
 * @author oldliu
 * @since 1.0
 */
public class DogTest5 {
    public static void main(String[] args) {
        Pet d=new Dog("大黄",99,99,"田园犬");
        //Pet d=new Parrot("小翠",99);
        d.show();
        Mouse m=new Mouse();
        //d.catchMouse(m);//出错了。。。
        //强转狗
        Dog dog=(Dog)d;
        System.out.println("强转之后：");
        dog.catchMouse(m);
        System.out.println(">>>>>>>>>>>>>>>>>>>>>");
        Object o=new Dog("添狗",10000,10000,"田园犬");
        System.out.println(o.hashCode());
    }
}
